import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/About.vue')
    }
  },
  {
    path: '/tests',
    name: 'tests',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/one/tests.vue')
    },
	
  },
  {
  	path: '/HomeSearch',
  	name: 'HomeSearch',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/HomeSearch.vue')
  	}
  },
  {
  	path: '/cart',
  	name: 'cart',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/cart.vue')
  	}
  },
  {
  	path: '/searchcart',
  	name: 'searchcart',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/searchcart.vue')
  	}
  },
  {
  	path: '/login',
  	name: 'login',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/login.vue')
  	}
  },
  {
  	path: '/mine',
  	name: 'mine',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/mine.vue')
  	}
  },
  {
  	path: '/mineset',
  	name: 'mineset',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/mineset.vue')
  	}
  },
  {
  	path: '/forum',
  	name: 'forum',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/forum.vue')
  	}
  },
  {
  	path: '/collect',
  	name: 'collect',
  	// route level code-splitting
  	// this generates a separate chunk (about.[hash].js) for this route
  	// which is lazy-loaded when the route is visited.
  	component: function () {
  	  return import(/* webpackChunkName: "about" */ '../views/one/collect.vue')
  	}
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
